﻿using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Text;

namespace T.FAS.Runtime.Metadata.Entity.Page
{
    /// <summary>
    /// 界面缓存设置
    /// </summary>
    [DataContract]
    [Serializable]
    public class PageCache: ICloneable
    {
        /// <summary>
        /// 主键
        /// </summary>
        [DataMember]
        public string ID { get; set; }
        /// <summary>
        /// 是否缓存
        /// </summary>
        [DataMember]
        public bool IsCache { get; set; }
        /// <summary>
        /// 缓存策略
        /// </summary>
        [DataMember]
        public string CachePolicy { get; set; }

        public object Clone()
        {
            return this.MemberwiseClone();
        }
    }
}
